package com.foreknow.view;

import com.foreknow.model.Admin;
import com.foreknow.service.AdminService;
import com.foreknow.service.impl.AdminServiceImpl;

import java.util.List;

public class MainWindow {
    public static void main(String[] args) {
        AdminService service = new AdminServiceImpl();
//        Admin admin = new Admin();
//        admin.setName("kkk");
//        admin.setPass("123456");
//        boolean isRight = service.add(admin);
//        System.out.println(isRight);
        List<Object> list = service.queryAll();
        System.out.println(list.size());
    }
}
